//
//  ZDQRCodeView.h
//  ZDQRCodeManager
//
//  Created by mac on 2019/10/29.
//  Copyright © 2019 北京定辉文化传媒有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, CornerLoaction) {
    /// 默认与边框线同中心点
    CornerLoactionDefault,
    /// 在边框线内部
    CornerLoactionInside,
    /// 在边框线外部
    CornerLoactionOutside
};

@interface YSQRCodeView : UIView

/// 边框颜色，默认白色
@property (nonatomic, strong) UIColor *borderColor;
/// 边角位置，默认 CornerLoactionDefault
@property (nonatomic, assign) CornerLoaction cornerLocation;
/// 边角颜色，默认(0, 159, 255))
@property (nonatomic, strong) UIColor *cornerColor;
/// 边角宽度，默认 2.f
@property (nonatomic, assign) CGFloat cornerWidth;
/// 扫描区周边颜色的 alpha 值，默认 0.2f
@property (nonatomic, assign) CGFloat backgroundAlpha;
/// 扫描线动画时间，默认 0.02s
@property (nonatomic, assign) NSTimeInterval animationTimeInterval;
/// 提示文本 默认 @"将二维码放入取景框框内即可自动扫描"
@property (nonatomic, copy) NSString *hintText;

/** 添加扫描 */
- (void)startScan;
/** 移除移除扫描 */
- (void)removeScan;

@end
